package com.example.demoshardingjdbc.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_user")
public class TUser {
    @TableId(value = "id")
    private Long id;

    @TableField(value = "`name`")
    private String name;

    @TableField(value = "age")
    private Integer age;

    @TableField(value = "job")
    private String job;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "email")
    private String email;

    @TableField(value = "last_login_time")
    private Date lastLoginTime;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "area")
    private Integer area;

    @TableField(value = "`password`")
    private String password;
}